package money;

public class Test {
	public static void main(String[] args) {
		Student stu1 = new Student("张三","数据结构实验室", 1);
		Student stu2 = new Student("李四","计算机网络实验室","组成原理实验室", 2);
		Student stu3 = new Student("王五","机器人实验室","神经网络实验室","人工智能实验室", 3);
		System.out.println("学生信息：");
		System.out.println(stu1);
		System.out.println(stu2);
		System.out.println(stu3);
		System.out.println("实验室的清洁打分情况劳务补贴查询：");
		Lab L1 = new Lab("数据结构实验室", "优");
		Lab L2 = new Lab("计算机网络实验室","组成原理实验室", "及格");
		Lab L3 = new Lab("机器人实验室","神经网络实验室", "优秀");
		Lab L4 = new Lab("人工智能实验室", "及格");
		System.out.println("实验室打扫得分：");
		System.out.println(L1);
		System.out.println(L2);
		System.out.println(L3);
		System.out.println(L4);
		try {
			double result1 = salary.sum(50);
			System.out.println("张三一周的收入为:" + result1);
			stu1.getMoney = result1;
			stu1.getMoney = stu1.getMoney * 18;
			double result2 = salary.sum(30, 30);
			System.out.println("李四一周的输入为:" + result2);
			stu2.getMoney = result2;
			stu2.getMoney = stu2.getMoney * 18;
			double result3 = salary.sum(50, 50, 30);
			System.out.println("王五一周的输入为:" + result3);
			stu3.getMoney = result3;
			stu3.getMoney = stu3.getMoney * 18;

			System.out.println("张三的总收入为：" + stu1.getMoney);
			System.out.println("李四的总收入为:" + stu2.getMoney);
			System.out.println("王五的总收入为:" + stu3.getMoney);
		
			double result4= salary.avg(stu1.getMoney);
			System.out.println("张三税后的收入为：" + result4);
			double result5 = salary.avg(stu2.getMoney);
			System.out.println("李四税后的收入为:" + result5);
			double result6= salary.avg(stu3.getMoney);
			System.out.println("王五税后的收入为：" + result6);
		} catch (Exception e) {
			System.out.println(e);
		}
		System.out.println("program over");
	}

	}